using ApiProject.Api.Entity;
using Microsoft.EntityFrameworkCore;

namespace ApiProject.Api.Data
{
    public class ApiProjectDb : DbContext
    {


        public ApiProjectDb(DbContextOptions options) : base(options)
        {

        }
        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<AuditInfo> AuditInfo { get; set; }
        public DbSet<Attention> Attention { get; set; }
        public DbSet<AuthorityManagement> AuthorityManagement { get; set; }
        public DbSet<Commodities> Commodities { get; set; }
        public DbSet<CommodityClassifications> CommodityClassifications { get; set; }
        public DbSet<CommodityDetails> CommodityDetails { get; set; }
        public DbSet<CommodityDetailPicture> CommodityDetailPicture { get; set; }
        public DbSet<ComSpecifications> ComSpecifications { get; set; }
        public DbSet<EmporiumInfo> EmporiumInfo { get; set; }
        public DbSet<Estimates> Estimates { get; set; }
        public DbSet<Orders> Orders { get; set; }
        public DbSet<OrderInfo> OrderInfo { get; set; }
        public DbSet<Payment> Payment { get; set; }
        public DbSet<ReceivingIdInfo> ReceivingIdInfo { get; set; }
        public DbSet<RoleAuthorty> RoleAuthorty { get; set; }
        public DbSet<ShoppingCar> ShoppingCar { get; set; }
        public DbSet<Specifications> Specifications { get; set; }
        public DbSet<AdImage> AdImage { get; set; }

        protected override void OnConfiguring(
            DbContextOptionsBuilder Builder
        ) =>
            Builder
                .UseSqlServer(@"server=.;database=mallDb;uid=sa;pwd=123456;");
    }
}
